
export default {
  state: {
    mailUnread: 0,
    mailReaded: 0,
    inboxChange: false,
    outboxChange: false
  },
  getters: {
  },
  mutations: {
    setInbox (state, val) {
      state.inboxChange = val
    },
    setOutbox (state, val) {
      state.outboxChange = val
    },
  },
  actions: {
    handleInbox ({ state, commit }, val) {
      commit('setInbox', val)
    },
    handleOutbox ({ state, commit }, val) {
      commit('setOutbox', val)
    },
  }
}
